<?php
/**
 * --------------------------------------------------------------
 * crond已授权入口模型
 * Author: zd <kfzphp@126.com>
 * Date: 2018-06-01
 * Project: kfzphp.com
 * --------------------------------------------------------------
 */

class EntryModel extends CrondModel
{
    public function __construct()
    {
        parent::__construct();
    }

    /**
     * 清空表数据
     * @param  [type] $table_name [表名]
     * @return [type]             [description]
     */
    public function clearTable($table_name)
    {
        return $this->mysql->query('truncate table ' . tab($table_name));
    }

    /**
     * 插入计划任务
     * @param  [type]     $data [description]
     * @return [type]           [description]
     */
    public function insertLogDebug($data)
    {
        return $this->mysql->insert(tab('log_debug'), $data);
    }

}